//
//  LDJ_AboutViewController.m
//  Pianke
//
//  Created by dllo on 15/12/30.
//  Copyright © 2015年 dada. All rights reserved.
//

#import "LDJ_AboutViewController.h"

@interface LDJ_AboutViewController ()
@property (nonatomic,retain)UIImageView *iconImageView;
@property (nonatomic,retain)UILabel *contentLabel;

@end

@implementation LDJ_AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.iconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 80 * EACH_WIDTH, 80 * EACH_HEIGHT)];
    self.iconImageView.center = CGPointMake(375/2 * EACH_WIDTH, 100 * EACH_HEIGHT);
    
    self.iconImageView.image = [UIImage imageNamed:@"1302139187781.jpg"];
    self.iconImageView.layer.masksToBounds = YES;
    self.iconImageView.layer.cornerRadius = 15 * EACH_WIDTH;
    [self.view addSubview:self.iconImageView];
    
    
    self.contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 150 * EACH_HEIGHT, 345 * EACH_WIDTH, 150 * EACH_HEIGHT)];
    self.contentLabel.text = @"    在阿尔卑斯山一处风景秀美却也极为险峻的山路转弯处，经常发生事故，可即使如此，来往的车辆依旧疾驰而过，不断更换的警示牌也没有起到任何作用，直到有一天那里立起一块木牌，写着“慢慢走，欣赏啊”，人们才猛然惊觉，原来只记得埋头赶路，竟忘了看看这满目秀丽。\n\n人生何尝不是如此？\n\n有时我们也想屏蔽喧嚣，虽然四周车水马龙；有时我们也会厌倦忙碌，尽管路人行色匆匆。\n\n只有我们自己知道，世界有多浮躁，你的心就有多安静。\n\n当社交网络的信息越来越疯狂的涌入你的生活，你是否也想关掉它，给内心腾出一片空间，思考、书写、聆听、欣赏……\n\n这世上有和你一样渴望宁静的人，他们正在这里，倾听时间，书写生活。\n\n请停下内心的匆忙，在转弯处休息片刻。";
    self.contentLabel.alpha = 0.6;
    self.contentLabel.font = [UIFont systemFontOfSize:15.0 * EACH_HEIGHT];
    
    self.contentLabel.numberOfLines = 0;
    [self.contentLabel sizeToFit];
    self.contentLabel.userInteractionEnabled = YES;
    [self.view addSubview:self.contentLabel];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapAction)];
    [self.contentLabel addGestureRecognizer:tap];
}

-(void)tapAction{

    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
